/**
 * 
 */
package com.dsteiner.xelavos.client.model;

import java.beans.PropertyChangeListener;

import com.dsteiner.widgets.client.PropertyChangeCollection;
import com.dsteiner.xelavos.client.domain.User;

public class UserStatsModel {
	private PropertyChangeCollection propertyChangeSupport = new PropertyChangeCollection(
			this);

	public void addPropertyChangeListener(String propertyName,
			PropertyChangeListener listener) {
		propertyChangeSupport.registerPropertyChangeListener(propertyName,
				listener);
	}
	private int countOnline;

	public int getCountOnline() {
		return countOnline;
	}

	public void setCountOnline(int countOnline) {
		int oldCountOnline = this.countOnline;
		this.countOnline = countOnline;
		propertyChangeSupport.firePropertyChange("countOnline", oldCountOnline, countOnline);
	}
	private int countLoggedIn;

	public int getCountLoggedIn() {
		return countLoggedIn;
	}

	public void setCountLoggedIn(int countLoggedIn) {
		int oldCountLoggedIn = this.countLoggedIn;
		this.countLoggedIn = countLoggedIn;
		propertyChangeSupport.firePropertyChange("countLoggedIn", oldCountLoggedIn, countLoggedIn);
	}
	private User lastLoggedIn;

	public User getLastLoggedIn() {
		return lastLoggedIn;
	}

	public void setLastLoggedIn(User lastLoggedIn) {
		User oldLastLoggedIn = this.lastLoggedIn;
		this.lastLoggedIn = lastLoggedIn;
		propertyChangeSupport.firePropertyChange("lastLoggedIn", oldLastLoggedIn, lastLoggedIn);
	}
}